<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Open a persistent connection to an Ingres database</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.ingres-pconnect" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ingres_pconnect</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.2, PHP 5 &lt; 5.1.0, PECL ingres &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">ingres_pconnect</span> &mdash; <span class="dc-title">Open a persistent connection to an Ingres database</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.ingres-pconnect-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ingres_pconnect</strong></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$database</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$username</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$password</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$options</code></span>
  ]]]] ) : <span class="type">resource</span></div>

  <p class="para rdfs-comment">
   Open a persistent connection to an Ingres database.
  </p>
  <p class="para">
   There are only two differences between this function and 
   <span class="function"><a href="ingres_connect.html" class="function">ingres_connect()</a></span>: First, when connecting, the
   function will initially try to find a (persistent) link that is
   already opened with the same parameters.  If one is found, an
   identifier for it will be returned instead of opening a new
   connection. Second, the connection to the Ingres server will not
   be closed when the execution of the script ends.  Instead, the
   link will remain open for future use
   (<span class="function"><a href="ingres_close.html" class="function">ingres_close()</a></span> will not close links
   established by <span class="function"><strong>ingres_pconnect()</strong></span>). This type
   of link is therefore called &quot;persistent&quot;.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ingres-pconnect-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">database</code></dt>

     <dd>

      <p class="para">
       The database name. Must follow the syntax:
      </p>
      <p class="para">
       <var class="varname"><var class="varname">[vnode::]dbname[/svr_class]</var></var>
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">username</code></dt>

     <dd>

      <p class="para">
       The Ingres user name
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">password</code></dt>

     <dd>

      <p class="para">
       The password associated with <code class="parameter">username</code>
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">options</code></dt>

     <dd>

      <p class="para">
       See <span class="function"><a href="ingres_connect.html" class="function">ingres_connect()</a></span> for the list of options that
       can be passed
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ingres-pconnect-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns an Ingres link resource on success 或者在失败时返回 <strong><code>FALSE</code></strong>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ingres-pconnect-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="ingres_connect.html" class="function" rel="rdfs-seeAlso">ingres_connect()</a> - Open a connection to an Ingres database</span></li>
    <li class="member"><span class="function"><a href="ingres_close.html" class="function" rel="rdfs-seeAlso">ingres_close()</a> - Close an Ingres database connection</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>